# class Person:
#     def __init__(self,name,age):
#         self.name=name
#         self.age=age
#     def introduce(self):
#         print('My name is',self.name)
#         print('My age is',self.age)
# class Teacher(Person):
#     def __init__(self,name,age,salary):
#         super(Teacher,self).__init__(name,age)
#         self.salary=salary
#     def showSalary(self):
#         print('My salary is',self.salary)
#     @property
#     def introduce(self):
#         super(Teacher,self).introduce()
#         Teacher.showSalary(self)
# class Student(Person):
#     def __init__(self,name,age,grade):
#         Person.__init__(self,name,age)
#         self.grade=grade
#     def showGrade(self):
#         print('My grade is',self.grade)
#     @property
#     def introduce(self):
#         Person.introduce(self)
#         Student.showGrade(self)
# teacher=Teacher('tom',30,5000)
# teacher.introduce
# student=Student('jerry',10,90)
# student.introduce

class Father:
    def __init__(self,f_attr):
        self.f_attr=f_attr
    def f_method(self):
        print('f_attr =',self.f_attr)
class Mother:
    def __init__(self,m_attr):
        self.m_attr=m_attr
    def m_method(self):
        print('m_attr =',self.m_attr)
class Child(Father,Mother):
    def __init__(self,f_attr,m_attr,c_attr):
        Father.__init__(self,f_attr)
        Mother.__init__(self,m_attr)
        self.c_attr=c_attr
    @property
    def c_method(self):
        print('c_attr =',self.c_attr)
child=Child('Father','Mother','Child')
child.f_method()
child.m_method()
child.c_method